package com.mxpio.erp.common.enums;

public interface EquipmentEnums {

    enum AuditStatus {
        APPLY("10", "申请"), SEND("20", "派工"), AUDIT("30", "稽核整改"), CHECKED("40", "验收");

        AuditStatus(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    enum UpkeepPlanTarget {
        AREA_TARGET("area", "区域"), EQP_TARGET("equipment", "设备");

        UpkeepPlanTarget(String code, String name) {
            this.code = code;
            this.name = name;
        }

        private String code;
        private String name;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    enum UpkeepStatus {
        START(10,"待下达"),RELEASE(20,"待派工"),WAIT_EXECUT(30,"待执行"),EXECUT(40,"执行中"),STOP(45,"暂停中"),END(50,"已结束");

        UpkeepStatus(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private Integer code;
        private String desc;

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
}
